import instance from "@/http";

// 角色列表
export const roleList = ()=>instance.get("/role/list")

// 角色分页
export const rolePage = (formData)=>instance.post("/role/page",formData)

// 添加或编辑角色信息
export const addOrUpdateRole = (formData)=>instance.post('/role/addOrUpdate',formData)

// 删除角色信息
export const deleteRole = (rid)=>instance.delete("/role/delete/"+rid)


// 根据角色id获取角色权限
export const rolePermissions = (rid)=>instance.get("/role/rolePermissions/"+rid)


// 添加角色权限信息
export const addRolePermissions = (formData)=>instance.post("/role/addRolePermissions",formData)

